<template>
  <div class="temp1">temp1</div>
</template>

<script lang="ts">
export default {
  data() {
    return {
      count: 1
    }
  },
  beforeUnmount() {
    console.log("卸载前");
    console.log(this.count)
    console.log(document.querySelector('.temp1'))
  },
  unmounted() {
    console.log("卸载后");
    console.log(this.count)
    console.log(document.querySelector('.temp1'))
  },
};
</script>
